#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "stm32f4xx.h"
#include "usart.h"
#include "usart2.h"
#include "Tim_Pwm_In.h"
#include "tim_pwm_out.h"
#include "timer.h"
#include "ANO_TC_STM32_I2C.h"
#include "MPU6050.h"
#include "ms5611.h"
#include "ak8975.h"
#include "led.h"
#include "sd.h"
#include "imu.h"
#include "data_transfer.h"
#include "flash_eeprom.h"
#include "nrf24.h"

#define USE_BARO
#define USE_COMPASS
//#define DATA_TRANSFER_USE_USART
#define DATA_TRANSFER_USE_NRF
#define RC_CHANL_NUM	7
#define RC_MIDDLE 		1500
#define RC_MIN				1100
#define	RC_MAX				1900
#define RC_DEADBAND		5
#define RC_USE_DEADBAND

extern __IO u8 MS5611_Cal_Flag;
extern __IO u8 AK8975_Cal_Flag;
extern __IO u16 DEBUG_CNT;



void Timer_Sys_Irq(void);
void Nvic_Init(void);

#endif 
